*! _wbod_tmpfile2 <8 Jul 2020 : 14:01:00>                 by João Pedro Azevedo
*                 auto generated and updated using _update_countrymetadata.ado 
  
 program define _wbod_tmpfile2 
  
     syntax , match(varname) [  adminregion adminregion_iso2 adminregionname incomelevel incomelevel_iso2 incomelevelname  ] 
  
 ******************  Values: adminregion ****************** 
  
 qui if ("`adminregion'" == "adminregion") {      
  
         cap: gen adminregion = ""  
         cap: replace adminregion = "SAS"     if `match' == "AFG"  
         cap: replace adminregion = "SSA"     if `match' == "AGO"  
         cap: replace adminregion = "ECA"     if `match' == "ALB"  
         cap: replace adminregion = "LAC"     if `match' == "ARG"  
         cap: replace adminregion = "ECA"     if `match' == "ARM"  
         cap: replace adminregion = "EAP"     if `match' == "ASM"  
         cap: replace adminregion = "ECA"     if `match' == "AZE"  
         cap: replace adminregion = "SSA"     if `match' == "BDI"  
         cap: replace adminregion = "SSA"     if `match' == "BEN"  
         cap: replace adminregion = "SSA"     if `match' == "BFA"  
         cap: replace adminregion = "SAS"     if `match' == "BGD"  
         cap: replace adminregion = "ECA"     if `match' == "BGR"  
         cap: replace adminregion = "ECA"     if `match' == "BIH"  
         cap: replace adminregion = "ECA"     if `match' == "BLR"  
         cap: replace adminregion = "LAC"     if `match' == "BLZ"  
         cap: replace adminregion = "LAC"     if `match' == "BOL"  
         cap: replace adminregion = "LAC"     if `match' == "BRA"  
         cap: replace adminregion = "SAS"     if `match' == "BTN"  
         cap: replace adminregion = "SSA"     if `match' == "BWA"  
         cap: replace adminregion = "SSA"     if `match' == "CAF"  
         cap: replace adminregion = "EAP"     if `match' == "CHN"  
         cap: replace adminregion = "SSA"     if `match' == "CIV"  
         cap: replace adminregion = "SSA"     if `match' == "CMR"  
         cap: replace adminregion = "SSA"     if `match' == "COD"  
         cap: replace adminregion = "SSA"     if `match' == "COG"  
         cap: replace adminregion = "LAC"     if `match' == "COL"  
         cap: replace adminregion = "SSA"     if `match' == "COM"  
         cap: replace adminregion = "SSA"     if `match' == "CPV"  
         cap: replace adminregion = "LAC"     if `match' == "CRI"  
         cap: replace adminregion = "LAC"     if `match' == "CUB"  
         cap: replace adminregion = "MNA"     if `match' == "DJI"  
         cap: replace adminregion = "LAC"     if `match' == "DMA"  
         cap: replace adminregion = "LAC"     if `match' == "DOM"  
         cap: replace adminregion = "MNA"     if `match' == "DZA"  
         cap: replace adminregion = "LAC"     if `match' == "ECU"  
         cap: replace adminregion = "MNA"     if `match' == "EGY"  
         cap: replace adminregion = "SSA"     if `match' == "ERI"  
         cap: replace adminregion = "SSA"     if `match' == "ETH"  
         cap: replace adminregion = "EAP"     if `match' == "FJI"  
         cap: replace adminregion = "EAP"     if `match' == "FSM"  
         cap: replace adminregion = "SSA"     if `match' == "GAB"  
         cap: replace adminregion = "ECA"     if `match' == "GEO"  
         cap: replace adminregion = "SSA"     if `match' == "GHA"  
         cap: replace adminregion = "SSA"     if `match' == "GIN"  
         cap: replace adminregion = "SSA"     if `match' == "GMB"  
         cap: replace adminregion = "SSA"     if `match' == "GNB"  
         cap: replace adminregion = "SSA"     if `match' == "GNQ"  
         cap: replace adminregion = "LAC"     if `match' == "GRD"  
         cap: replace adminregion = "LAC"     if `match' == "GTM"  
         cap: replace adminregion = "LAC"     if `match' == "GUY"  
         cap: replace adminregion = "LAC"     if `match' == "HND"  
         cap: replace adminregion = "LAC"     if `match' == "HTI"  
         cap: replace adminregion = "EAP"     if `match' == "IDN"  
         cap: replace adminregion = "SAS"     if `match' == "IND"  
         cap: replace adminregion = "MNA"     if `match' == "IRN"  
         cap: replace adminregion = "MNA"     if `match' == "IRQ"  
         cap: replace adminregion = "LAC"     if `match' == "JAM"  
         cap: replace adminregion = "MNA"     if `match' == "JOR"  
         cap: replace adminregion = "ECA"     if `match' == "KAZ"  
         cap: replace adminregion = "SSA"     if `match' == "KEN"  
         cap: replace adminregion = "ECA"     if `match' == "KGZ"  
         cap: replace adminregion = "EAP"     if `match' == "KHM"  
         cap: replace adminregion = "EAP"     if `match' == "KIR"  
         cap: replace adminregion = "EAP"     if `match' == "LAO"  
         cap: replace adminregion = "MNA"     if `match' == "LBN"  
         cap: replace adminregion = "SSA"     if `match' == "LBR"  
         cap: replace adminregion = "MNA"     if `match' == "LBY"  
         cap: replace adminregion = "LAC"     if `match' == "LCA"  
         cap: replace adminregion = "SAS"     if `match' == "LKA"  
         cap: replace adminregion = "SSA"     if `match' == "LSO"  
         cap: replace adminregion = "MNA"     if `match' == "MAR"  
         cap: replace adminregion = "ECA"     if `match' == "MDA"  
         cap: replace adminregion = "SSA"     if `match' == "MDG"  
         cap: replace adminregion = "SAS"     if `match' == "MDV"  
         cap: replace adminregion = "LAC"     if `match' == "MEX"  
         cap: replace adminregion = "EAP"     if `match' == "MHL"  
         cap: replace adminregion = "ECA"     if `match' == "MKD"  
         cap: replace adminregion = "SSA"     if `match' == "MLI"  
         cap: replace adminregion = "EAP"     if `match' == "MMR"  
         cap: replace adminregion = "ECA"     if `match' == "MNE"  
         cap: replace adminregion = "EAP"     if `match' == "MNG"  
         cap: replace adminregion = "SSA"     if `match' == "MOZ"  
         cap: replace adminregion = "SSA"     if `match' == "MRT"  
         cap: replace adminregion = "SSA"     if `match' == "MWI"  
         cap: replace adminregion = "EAP"     if `match' == "MYS"  
         cap: replace adminregion = "SSA"     if `match' == "NAM"  
         cap: replace adminregion = "SSA"     if `match' == "NER"  
         cap: replace adminregion = "SSA"     if `match' == "NGA"  
         cap: replace adminregion = "LAC"     if `match' == "NIC"  
         cap: replace adminregion = "SAS"     if `match' == "NPL"  
         cap: replace adminregion = "SAS"     if `match' == "PAK"  
         cap: replace adminregion = "LAC"     if `match' == "PER"  
         cap: replace adminregion = "EAP"     if `match' == "PHL"  
         cap: replace adminregion = "EAP"     if `match' == "PNG"  
         cap: replace adminregion = "EAP"     if `match' == "PRK"  
         cap: replace adminregion = "LAC"     if `match' == "PRY"  
         cap: replace adminregion = "MNA"     if `match' == "PSE"  
         cap: replace adminregion = "ECA"     if `match' == "RUS"  
         cap: replace adminregion = "SSA"     if `match' == "RWA"  
         cap: replace adminregion = "SSA"     if `match' == "SDN"  
         cap: replace adminregion = "SSA"     if `match' == "SEN"  
         cap: replace adminregion = "EAP"     if `match' == "SLB"  
         cap: replace adminregion = "SSA"     if `match' == "SLE"  
         cap: replace adminregion = "LAC"     if `match' == "SLV"  
         cap: replace adminregion = "SSA"     if `match' == "SOM"  
         cap: replace adminregion = "ECA"     if `match' == "SRB"  
         cap: replace adminregion = "SSA"     if `match' == "SSD"  
         cap: replace adminregion = "SSA"     if `match' == "STP"  
         cap: replace adminregion = "LAC"     if `match' == "SUR"  
         cap: replace adminregion = "SSA"     if `match' == "SWZ"  
         cap: replace adminregion = "MNA"     if `match' == "SYR"  
         cap: replace adminregion = "SSA"     if `match' == "TCD"  
         cap: replace adminregion = "SSA"     if `match' == "TGO"  
         cap: replace adminregion = "EAP"     if `match' == "THA"  
         cap: replace adminregion = "ECA"     if `match' == "TJK"  
         cap: replace adminregion = "ECA"     if `match' == "TKM"  
         cap: replace adminregion = "EAP"     if `match' == "TLS"  
         cap: replace adminregion = "EAP"     if `match' == "TON"  
         cap: replace adminregion = "MNA"     if `match' == "TUN"  
         cap: replace adminregion = "ECA"     if `match' == "TUR"  
         cap: replace adminregion = "EAP"     if `match' == "TUV"  
         cap: replace adminregion = "SSA"     if `match' == "TZA"  
         cap: replace adminregion = "SSA"     if `match' == "UGA"  
         cap: replace adminregion = "ECA"     if `match' == "UKR"  
         cap: replace adminregion = "ECA"     if `match' == "UZB"  
         cap: replace adminregion = "LAC"     if `match' == "VCT"  
         cap: replace adminregion = "LAC"     if `match' == "VEN"  
         cap: replace adminregion = "EAP"     if `match' == "VNM"  
         cap: replace adminregion = "EAP"     if `match' == "VUT"  
         cap: replace adminregion = "EAP"     if `match' == "WSM"  
         cap: replace adminregion = "ECA"     if `match' == "XKX"  
         cap: replace adminregion = "MNA"     if `match' == "YEM"  
         cap: replace adminregion = "SSA"     if `match' == "ZAF"  
         cap: replace adminregion = "SSA"     if `match' == "ZMB"  
         cap: replace adminregion = "SSA"     if `match' == "ZWE"  
  
******************  Lable: adminregion ******************
  
     lab var adminregion                 "Administrative Region Code" 
 }        
  
 ****************************************************** 
  
 ******************  Values: adminregion_iso2 ****************** 
  
 qui if ("`adminregion_iso2'" == "adminregion_iso2") {      
  
         cap: gen adminregion_iso2 = ""  
         cap: replace adminregion_iso2 = "8S"     if `match' == "AFG"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "AGO"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "ALB"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "ARG"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "ARM"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "ASM"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "AZE"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "BDI"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "BEN"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "BFA"  
         cap: replace adminregion_iso2 = "8S"     if `match' == "BGD"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "BGR"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "BIH"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "BLR"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "BLZ"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "BOL"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "BRA"  
         cap: replace adminregion_iso2 = "8S"     if `match' == "BTN"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "BWA"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "CAF"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "CHN"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "CIV"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "CMR"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "COD"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "COG"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "COL"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "COM"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "CPV"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "CRI"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "CUB"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "DJI"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "DMA"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "DOM"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "DZA"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "ECU"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "EGY"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "ERI"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "ETH"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "FJI"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "FSM"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "GAB"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "GEO"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "GHA"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "GIN"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "GMB"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "GNB"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "GNQ"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "GRD"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "GTM"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "GUY"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "HND"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "HTI"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "IDN"  
         cap: replace adminregion_iso2 = "8S"     if `match' == "IND"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "IRN"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "IRQ"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "JAM"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "JOR"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "KAZ"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "KEN"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "KGZ"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "KHM"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "KIR"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "LAO"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "LBN"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "LBR"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "LBY"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "LCA"  
         cap: replace adminregion_iso2 = "8S"     if `match' == "LKA"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "LSO"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "MAR"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "MDA"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "MDG"  
         cap: replace adminregion_iso2 = "8S"     if `match' == "MDV"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "MEX"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "MHL"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "MKD"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "MLI"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "MMR"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "MNE"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "MNG"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "MOZ"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "MRT"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "MWI"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "MYS"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "NAM"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "NER"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "NGA"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "NIC"  
         cap: replace adminregion_iso2 = "8S"     if `match' == "NPL"  
         cap: replace adminregion_iso2 = "8S"     if `match' == "PAK"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "PER"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "PHL"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "PNG"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "PRK"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "PRY"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "PSE"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "RUS"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "RWA"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "SDN"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "SEN"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "SLB"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "SLE"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "SLV"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "SOM"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "SRB"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "SSD"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "STP"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "SUR"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "SWZ"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "SYR"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "TCD"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "TGO"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "THA"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "TJK"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "TKM"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "TLS"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "TON"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "TUN"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "TUR"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "TUV"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "TZA"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "UGA"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "UKR"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "UZB"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "VCT"  
         cap: replace adminregion_iso2 = "XJ"     if `match' == "VEN"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "VNM"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "VUT"  
         cap: replace adminregion_iso2 = "4E"     if `match' == "WSM"  
         cap: replace adminregion_iso2 = "7E"     if `match' == "XKX"  
         cap: replace adminregion_iso2 = "XQ"     if `match' == "YEM"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "ZAF"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "ZMB"  
         cap: replace adminregion_iso2 = "ZF"     if `match' == "ZWE"  
  
******************  Lable: adminregion_iso2 ******************
  
     lab var adminregion_iso2    "Administrative Region Code (ISO 2 digits)" 
 }        
  
 ****************************************************** 
  
 ******************  Values: adminregionname ****************** 
  
 qui if ("`adminregionname'" == "adminregionname") {      
  
         cap: gen adminregionname = ""  
         cap: replace adminregionname = "South Asia (excluding high income)"     if `match' == "AFG"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "AGO"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "ALB"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "ARG"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "ARM"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "ASM"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "AZE"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "BDI"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "BEN"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "BFA"  
         cap: replace adminregionname = "South Asia (excluding high income)"     if `match' == "BGD"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "BGR"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "BIH"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "BLR"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "BLZ"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "BOL"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "BRA"  
         cap: replace adminregionname = "South Asia (excluding high income)"     if `match' == "BTN"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "BWA"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "CAF"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "CHN"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "CIV"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "CMR"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "COD"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "COG"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "COL"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "COM"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "CPV"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "CRI"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "CUB"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "DJI"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "DMA"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "DOM"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "DZA"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "ECU"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "EGY"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "ERI"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "ETH"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "FJI"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "FSM"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "GAB"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "GEO"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "GHA"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "GIN"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "GMB"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "GNB"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "GNQ"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "GRD"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "GTM"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "GUY"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "HND"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "HTI"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "IDN"  
         cap: replace adminregionname = "South Asia (excluding high income)"     if `match' == "IND"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "IRN"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "IRQ"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "JAM"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "JOR"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "KAZ"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "KEN"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "KGZ"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "KHM"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "KIR"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "LAO"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "LBN"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "LBR"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "LBY"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "LCA"  
         cap: replace adminregionname = "South Asia (excluding high income)"     if `match' == "LKA"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "LSO"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "MAR"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "MDA"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "MDG"  
         cap: replace adminregionname = "South Asia (excluding high income)"     if `match' == "MDV"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "MEX"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "MHL"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "MKD"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "MLI"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "MMR"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "MNE"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "MNG"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "MOZ"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "MRT"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "MWI"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "MYS"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "NAM"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "NER"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "NGA"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "NIC"  
         cap: replace adminregionname = "South Asia (excluding high income)"     if `match' == "NPL"  
         cap: replace adminregionname = "South Asia (excluding high income)"     if `match' == "PAK"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "PER"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "PHL"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "PNG"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "PRK"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "PRY"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "PSE"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "RUS"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "RWA"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "SDN"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "SEN"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "SLB"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "SLE"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "SLV"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "SOM"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "SRB"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "SSD"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "STP"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "SUR"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "SWZ"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "SYR"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "TCD"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "TGO"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "THA"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "TJK"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "TKM"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "TLS"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "TON"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "TUN"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "TUR"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "TUV"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "TZA"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "UGA"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "UKR"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "UZB"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "VCT"  
         cap: replace adminregionname = "Latin America and Caribbean (excluding high income)"     if `match' == "VEN"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "VNM"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "VUT"  
         cap: replace adminregionname = "East Asia and Pacific (excluding high income)"     if `match' == "WSM"  
         cap: replace adminregionname = "Europe and Central Asia (excluding high income)"     if `match' == "XKX"  
         cap: replace adminregionname = "Middle East and North Africa (excluding high income)"     if `match' == "YEM"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "ZAF"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "ZMB"  
         cap: replace adminregionname = "Sub-Saharan Africa (excluding high income)"     if `match' == "ZWE"  
  
******************  Lable: adminregionname ******************
  
     lab var adminregionname         "Administrative Region Name" 
 }        
  
 ****************************************************** 
  
 ******************  Values: incomelevel ****************** 
  
 qui if ("`incomelevel'" == "incomelevel") {      
  
         cap: gen incomelevel = ""  
         cap: replace incomelevel = "HIC"     if `match' == "ABW"  
         cap: replace incomelevel = "LIC"     if `match' == "AFG"  
         cap: replace incomelevel = "NA"     if `match' == "AFR"  
         cap: replace incomelevel = "LMC"     if `match' == "AGO"  
         cap: replace incomelevel = "UMC"     if `match' == "ALB"  
         cap: replace incomelevel = "HIC"     if `match' == "AND"  
         cap: replace incomelevel = "NA"     if `match' == "ANR"  
         cap: replace incomelevel = "NA"     if `match' == "ARB"  
         cap: replace incomelevel = "HIC"     if `match' == "ARE"  
         cap: replace incomelevel = "UMC"     if `match' == "ARG"  
         cap: replace incomelevel = "UMC"     if `match' == "ARM"  
         cap: replace incomelevel = "UMC"     if `match' == "ASM"  
         cap: replace incomelevel = "HIC"     if `match' == "ATG"  
         cap: replace incomelevel = "HIC"     if `match' == "AUS"  
         cap: replace incomelevel = "HIC"     if `match' == "AUT"  
         cap: replace incomelevel = "UMC"     if `match' == "AZE"  
         cap: replace incomelevel = "LIC"     if `match' == "BDI"  
         cap: replace incomelevel = "NA"     if `match' == "BEA"  
         cap: replace incomelevel = "NA"     if `match' == "BEC"  
         cap: replace incomelevel = "HIC"     if `match' == "BEL"  
         cap: replace incomelevel = "LMC"     if `match' == "BEN"  
         cap: replace incomelevel = "LIC"     if `match' == "BFA"  
         cap: replace incomelevel = "LMC"     if `match' == "BGD"  
         cap: replace incomelevel = "UMC"     if `match' == "BGR"  
         cap: replace incomelevel = "NA"     if `match' == "BHI"  
         cap: replace incomelevel = "HIC"     if `match' == "BHR"  
         cap: replace incomelevel = "HIC"     if `match' == "BHS"  
         cap: replace incomelevel = "UMC"     if `match' == "BIH"  
         cap: replace incomelevel = "NA"     if `match' == "BLA"  
         cap: replace incomelevel = "UMC"     if `match' == "BLR"  
         cap: replace incomelevel = "UMC"     if `match' == "BLZ"  
         cap: replace incomelevel = "NA"     if `match' == "BMN"  
         cap: replace incomelevel = "HIC"     if `match' == "BMU"  
         cap: replace incomelevel = "LMC"     if `match' == "BOL"  
         cap: replace incomelevel = "UMC"     if `match' == "BRA"  
         cap: replace incomelevel = "HIC"     if `match' == "BRB"  
         cap: replace incomelevel = "HIC"     if `match' == "BRN"  
         cap: replace incomelevel = "NA"     if `match' == "BSS"  
         cap: replace incomelevel = "LMC"     if `match' == "BTN"  
         cap: replace incomelevel = "UMC"     if `match' == "BWA"  
         cap: replace incomelevel = "NA"     if `match' == "CAA"  
         cap: replace incomelevel = "LIC"     if `match' == "CAF"  
         cap: replace incomelevel = "HIC"     if `match' == "CAN"  
         cap: replace incomelevel = "NA"     if `match' == "CEA"  
         cap: replace incomelevel = "NA"     if `match' == "CEB"  
         cap: replace incomelevel = "NA"     if `match' == "CEU"  
         cap: replace incomelevel = "HIC"     if `match' == "CHE"  
         cap: replace incomelevel = "HIC"     if `match' == "CHI"  
         cap: replace incomelevel = "HIC"     if `match' == "CHL"  
         cap: replace incomelevel = "UMC"     if `match' == "CHN"  
         cap: replace incomelevel = "LMC"     if `match' == "CIV"  
         cap: replace incomelevel = "NA"     if `match' == "CLA"  
         cap: replace incomelevel = "NA"     if `match' == "CME"  
         cap: replace incomelevel = "LMC"     if `match' == "CMR"  
         cap: replace incomelevel = "LIC"     if `match' == "COD"  
         cap: replace incomelevel = "LMC"     if `match' == "COG"  
         cap: replace incomelevel = "UMC"     if `match' == "COL"  
         cap: replace incomelevel = "LMC"     if `match' == "COM"  
         cap: replace incomelevel = "LMC"     if `match' == "CPV"  
         cap: replace incomelevel = "UMC"     if `match' == "CRI"  
         cap: replace incomelevel = "NA"     if `match' == "CSA"  
         cap: replace incomelevel = "NA"     if `match' == "CSS"  
         cap: replace incomelevel = "UMC"     if `match' == "CUB"  
         cap: replace incomelevel = "HIC"     if `match' == "CUW"  
         cap: replace incomelevel = "HIC"     if `match' == "CYM"  
         cap: replace incomelevel = "HIC"     if `match' == "CYP"  
         cap: replace incomelevel = "HIC"     if `match' == "CZE"  
         cap: replace incomelevel = "NA"     if `match' == "DEA"  
         cap: replace incomelevel = "NA"     if `match' == "DEC"  
         cap: replace incomelevel = "HIC"     if `match' == "DEU"  
         cap: replace incomelevel = "NA"     if `match' == "DFS"  
         cap: replace incomelevel = "LMC"     if `match' == "DJI"  
         cap: replace incomelevel = "NA"     if `match' == "DLA"  
         cap: replace incomelevel = "UMC"     if `match' == "DMA"  
         cap: replace incomelevel = "NA"     if `match' == "DMN"  
         cap: replace incomelevel = "NA"     if `match' == "DNF"  
         cap: replace incomelevel = "HIC"     if `match' == "DNK"  
         cap: replace incomelevel = "NA"     if `match' == "DNS"  
         cap: replace incomelevel = "UMC"     if `match' == "DOM"  
         cap: replace incomelevel = "NA"     if `match' == "DSA"  
         cap: replace incomelevel = "NA"     if `match' == "DSF"  
         cap: replace incomelevel = "NA"     if `match' == "DSS"  
         cap: replace incomelevel = "NA"     if `match' == "DXS"  
         cap: replace incomelevel = "LMC"     if `match' == "DZA"  
         cap: replace incomelevel = "NA"     if `match' == "EAP"  
         cap: replace incomelevel = "NA"     if `match' == "EAR"  
         cap: replace incomelevel = "NA"     if `match' == "EAS"  
         cap: replace incomelevel = "NA"     if `match' == "ECA"  
         cap: replace incomelevel = "NA"     if `match' == "ECS"  
         cap: replace incomelevel = "UMC"     if `match' == "ECU"  
         cap: replace incomelevel = "LMC"     if `match' == "EGY"  
         cap: replace incomelevel = "NA"     if `match' == "EMU"  
         cap: replace incomelevel = "LIC"     if `match' == "ERI"  
         cap: replace incomelevel = "HIC"     if `match' == "ESP"  
         cap: replace incomelevel = "HIC"     if `match' == "EST"  
         cap: replace incomelevel = "LIC"     if `match' == "ETH"  
         cap: replace incomelevel = "NA"     if `match' == "EUU"  
         cap: replace incomelevel = "NA"     if `match' == "FCS"  
         cap: replace incomelevel = "HIC"     if `match' == "FIN"  
         cap: replace incomelevel = "UMC"     if `match' == "FJI"  
         cap: replace incomelevel = "HIC"     if `match' == "FRA"  
         cap: replace incomelevel = "HIC"     if `match' == "FRO"  
         cap: replace incomelevel = "LMC"     if `match' == "FSM"  
         cap: replace incomelevel = "NA"     if `match' == "FXS"  
         cap: replace incomelevel = "UMC"     if `match' == "GAB"  
         cap: replace incomelevel = "HIC"     if `match' == "GBR"  
         cap: replace incomelevel = "UMC"     if `match' == "GEO"  
         cap: replace incomelevel = "LMC"     if `match' == "GHA"  
         cap: replace incomelevel = "HIC"     if `match' == "GIB"  
         cap: replace incomelevel = "LIC"     if `match' == "GIN"  
         cap: replace incomelevel = "LIC"     if `match' == "GMB"  
         cap: replace incomelevel = "LIC"     if `match' == "GNB"  
         cap: replace incomelevel = "UMC"     if `match' == "GNQ"  
         cap: replace incomelevel = "HIC"     if `match' == "GRC"  
         cap: replace incomelevel = "UMC"     if `match' == "GRD"  
         cap: replace incomelevel = "HIC"     if `match' == "GRL"  
         cap: replace incomelevel = "UMC"     if `match' == "GTM"  
         cap: replace incomelevel = "HIC"     if `match' == "GUM"  
         cap: replace incomelevel = "UMC"     if `match' == "GUY"  
         cap: replace incomelevel = "NA"     if `match' == "HIC"  
         cap: replace incomelevel = "HIC"     if `match' == "HKG"  
         cap: replace incomelevel = "LMC"     if `match' == "HND"  
         cap: replace incomelevel = "NA"     if `match' == "HPC"  
         cap: replace incomelevel = "HIC"     if `match' == "HRV"  
         cap: replace incomelevel = "LIC"     if `match' == "HTI"  
         cap: replace incomelevel = "HIC"     if `match' == "HUN"  
         cap: replace incomelevel = "NA"     if `match' == "IBB"  
         cap: replace incomelevel = "NA"     if `match' == "IBD"  
         cap: replace incomelevel = "NA"     if `match' == "IBT"  
         cap: replace incomelevel = "NA"     if `match' == "IDA"  
         cap: replace incomelevel = "NA"     if `match' == "IDB"  
         cap: replace incomelevel = "UMC"     if `match' == "IDN"  
         cap: replace incomelevel = "NA"     if `match' == "IDX"  
         cap: replace incomelevel = "HIC"     if `match' == "IMN"  
         cap: replace incomelevel = "LMC"     if `match' == "IND"  
         cap: replace incomelevel = "NA"     if `match' == "INX"  
         cap: replace incomelevel = "HIC"     if `match' == "IRL"  
         cap: replace incomelevel = "UMC"     if `match' == "IRN"  
         cap: replace incomelevel = "UMC"     if `match' == "IRQ"  
         cap: replace incomelevel = "HIC"     if `match' == "ISL"  
         cap: replace incomelevel = "HIC"     if `match' == "ISR"  
         cap: replace incomelevel = "HIC"     if `match' == "ITA"  
         cap: replace incomelevel = "UMC"     if `match' == "JAM"  
         cap: replace incomelevel = "UMC"     if `match' == "JOR"  
         cap: replace incomelevel = "HIC"     if `match' == "JPN"  
         cap: replace incomelevel = "UMC"     if `match' == "KAZ"  
         cap: replace incomelevel = "LMC"     if `match' == "KEN"  
         cap: replace incomelevel = "LMC"     if `match' == "KGZ"  
         cap: replace incomelevel = "LMC"     if `match' == "KHM"  
         cap: replace incomelevel = "LMC"     if `match' == "KIR"  
         cap: replace incomelevel = "HIC"     if `match' == "KNA"  
         cap: replace incomelevel = "HIC"     if `match' == "KOR"  
         cap: replace incomelevel = "HIC"     if `match' == "KWT"  
         cap: replace incomelevel = "NA"     if `match' == "LAC"  
         cap: replace incomelevel = "LMC"     if `match' == "LAO"  
         cap: replace incomelevel = "UMC"     if `match' == "LBN"  
         cap: replace incomelevel = "LIC"     if `match' == "LBR"  
         cap: replace incomelevel = "UMC"     if `match' == "LBY"  
         cap: replace incomelevel = "UMC"     if `match' == "LCA"  
         cap: replace incomelevel = "NA"     if `match' == "LCN"  
         cap: replace incomelevel = "NA"     if `match' == "LCR"  
         cap: replace incomelevel = "NA"     if `match' == "LDC"  
         cap: replace incomelevel = "NA"     if `match' == "LIC"  
         cap: replace incomelevel = "HIC"     if `match' == "LIE"  
         cap: replace incomelevel = "LMC"     if `match' == "LKA"  
         cap: replace incomelevel = "NA"     if `match' == "LMC"  
         cap: replace incomelevel = "NA"     if `match' == "LMY"  
         cap: replace incomelevel = "LMC"     if `match' == "LSO"  
         cap: replace incomelevel = "NA"     if `match' == "LTE"  
         cap: replace incomelevel = "HIC"     if `match' == "LTU"  
         cap: replace incomelevel = "HIC"     if `match' == "LUX"  
         cap: replace incomelevel = "HIC"     if `match' == "LVA"  
         cap: replace incomelevel = "HIC"     if `match' == "MAC"  
         cap: replace incomelevel = "HIC"     if `match' == "MAF"  
         cap: replace incomelevel = "LMC"     if `match' == "MAR"  
         cap: replace incomelevel = "NA"     if `match' == "MCA"  
         cap: replace incomelevel = "HIC"     if `match' == "MCO"  
         cap: replace incomelevel = "LMC"     if `match' == "MDA"  
         cap: replace incomelevel = "NA"     if `match' == "MDE"  
         cap: replace incomelevel = "LIC"     if `match' == "MDG"  
         cap: replace incomelevel = "UMC"     if `match' == "MDV"  
         cap: replace incomelevel = "NA"     if `match' == "MEA"  
         cap: replace incomelevel = "UMC"     if `match' == "MEX"  
         cap: replace incomelevel = "UMC"     if `match' == "MHL"  
         cap: replace incomelevel = "NA"     if `match' == "MIC"  
         cap: replace incomelevel = "UMC"     if `match' == "MKD"  
         cap: replace incomelevel = "LIC"     if `match' == "MLI"  
         cap: replace incomelevel = "HIC"     if `match' == "MLT"  
         cap: replace incomelevel = "LMC"     if `match' == "MMR"  
         cap: replace incomelevel = "NA"     if `match' == "MNA"  
         cap: replace incomelevel = "UMC"     if `match' == "MNE"  
         cap: replace incomelevel = "LMC"     if `match' == "MNG"  
         cap: replace incomelevel = "HIC"     if `match' == "MNP"  
         cap: replace incomelevel = "LIC"     if `match' == "MOZ"  
         cap: replace incomelevel = "LMC"     if `match' == "MRT"  
         cap: replace incomelevel = "HIC"     if `match' == "MUS"  
         cap: replace incomelevel = "LIC"     if `match' == "MWI"  
         cap: replace incomelevel = "UMC"     if `match' == "MYS"  
         cap: replace incomelevel = "NA"     if `match' == "NAC"  
         cap: replace incomelevel = "NA"     if `match' == "NAF"  
         cap: replace incomelevel = "UMC"     if `match' == "NAM"  
         cap: replace incomelevel = "HIC"     if `match' == "NCL"  
         cap: replace incomelevel = "LIC"     if `match' == "NER"  
         cap: replace incomelevel = "LMC"     if `match' == "NGA"  
         cap: replace incomelevel = "LMC"     if `match' == "NIC"  
         cap: replace incomelevel = "HIC"     if `match' == "NLD"  
         cap: replace incomelevel = "NA"     if `match' == "NLS"  
         cap: replace incomelevel = "HIC"     if `match' == "NOR"  
         cap: replace incomelevel = "LMC"     if `match' == "NPL"  
         cap: replace incomelevel = "NA"     if `match' == "NRS"  
         cap: replace incomelevel = "HIC"     if `match' == "NRU"  
         cap: replace incomelevel = "NA"     if `match' == "NXS"  
         cap: replace incomelevel = "HIC"     if `match' == "NZL"  
         cap: replace incomelevel = "NA"     if `match' == "OED"  
         cap: replace incomelevel = "HIC"     if `match' == "OMN"  
         cap: replace incomelevel = "NA"     if `match' == "OSS"  
         cap: replace incomelevel = "LMC"     if `match' == "PAK"  
         cap: replace incomelevel = "HIC"     if `match' == "PAN"  
         cap: replace incomelevel = "UMC"     if `match' == "PER"  
         cap: replace incomelevel = "LMC"     if `match' == "PHL"  
         cap: replace incomelevel = "HIC"     if `match' == "PLW"  
         cap: replace incomelevel = "LMC"     if `match' == "PNG"  
         cap: replace incomelevel = "HIC"     if `match' == "POL"  
         cap: replace incomelevel = "NA"     if `match' == "PRE"  
         cap: replace incomelevel = "HIC"     if `match' == "PRI"  
         cap: replace incomelevel = "LIC"     if `match' == "PRK"  
         cap: replace incomelevel = "HIC"     if `match' == "PRT"  
         cap: replace incomelevel = "UMC"     if `match' == "PRY"  
         cap: replace incomelevel = "LMC"     if `match' == "PSE"  
         cap: replace incomelevel = "NA"     if `match' == "PSS"  
         cap: replace incomelevel = "NA"     if `match' == "PST"  
         cap: replace incomelevel = "HIC"     if `match' == "PYF"  
         cap: replace incomelevel = "HIC"     if `match' == "QAT"  
         cap: replace incomelevel = "HIC"     if `match' == "ROU"  
         cap: replace incomelevel = "NA"     if `match' == "RRS"  
         cap: replace incomelevel = "NA"     if `match' == "RSO"  
         cap: replace incomelevel = "UMC"     if `match' == "RUS"  
         cap: replace incomelevel = "LIC"     if `match' == "RWA"  
         cap: replace incomelevel = "NA"     if `match' == "SAS"  
         cap: replace incomelevel = "HIC"     if `match' == "SAU"  
         cap: replace incomelevel = "NA"     if `match' == "SCE"  
         cap: replace incomelevel = "LIC"     if `match' == "SDN"  
         cap: replace incomelevel = "LMC"     if `match' == "SEN"  
         cap: replace incomelevel = "HIC"     if `match' == "SGP"  
         cap: replace incomelevel = "LMC"     if `match' == "SLB"  
         cap: replace incomelevel = "LIC"     if `match' == "SLE"  
         cap: replace incomelevel = "LMC"     if `match' == "SLV"  
         cap: replace incomelevel = "HIC"     if `match' == "SMR"  
         cap: replace incomelevel = "LIC"     if `match' == "SOM"  
         cap: replace incomelevel = "UMC"     if `match' == "SRB"  
         cap: replace incomelevel = "NA"     if `match' == "SSA"  
         cap: replace incomelevel = "LIC"     if `match' == "SSD"  
         cap: replace incomelevel = "NA"     if `match' == "SSF"  
         cap: replace incomelevel = "NA"     if `match' == "SST"  
         cap: replace incomelevel = "LMC"     if `match' == "STP"  
         cap: replace incomelevel = "UMC"     if `match' == "SUR"  
         cap: replace incomelevel = "HIC"     if `match' == "SVK"  
         cap: replace incomelevel = "HIC"     if `match' == "SVN"  
         cap: replace incomelevel = "HIC"     if `match' == "SWE"  
         cap: replace incomelevel = "LMC"     if `match' == "SWZ"  
         cap: replace incomelevel = "HIC"     if `match' == "SXM"  
         cap: replace incomelevel = "NA"     if `match' == "SXZ"  
         cap: replace incomelevel = "HIC"     if `match' == "SYC"  
         cap: replace incomelevel = "LIC"     if `match' == "SYR"  
         cap: replace incomelevel = "HIC"     if `match' == "TCA"  
         cap: replace incomelevel = "LIC"     if `match' == "TCD"  
         cap: replace incomelevel = "NA"     if `match' == "TEA"  
         cap: replace incomelevel = "NA"     if `match' == "TEC"  
         cap: replace incomelevel = "LIC"     if `match' == "TGO"  
         cap: replace incomelevel = "UMC"     if `match' == "THA"  
         cap: replace incomelevel = "LIC"     if `match' == "TJK"  
         cap: replace incomelevel = "UMC"     if `match' == "TKM"  
         cap: replace incomelevel = "NA"     if `match' == "TLA"  
         cap: replace incomelevel = "LMC"     if `match' == "TLS"  
         cap: replace incomelevel = "NA"     if `match' == "TMN"  
         cap: replace incomelevel = "UMC"     if `match' == "TON"  
         cap: replace incomelevel = "NA"     if `match' == "TSA"  
         cap: replace incomelevel = "NA"     if `match' == "TSS"  
         cap: replace incomelevel = "HIC"     if `match' == "TTO"  
         cap: replace incomelevel = "LMC"     if `match' == "TUN"  
         cap: replace incomelevel = "UMC"     if `match' == "TUR"  
         cap: replace incomelevel = "UMC"     if `match' == "TUV"  
         cap: replace incomelevel = "HIC"     if `match' == "TWN"  
         cap: replace incomelevel = "LMC"     if `match' == "TZA"  
         cap: replace incomelevel = "LIC"     if `match' == "UGA"  
         cap: replace incomelevel = "LMC"     if `match' == "UKR"  
         cap: replace incomelevel = "NA"     if `match' == "UMC"  
         cap: replace incomelevel = "HIC"     if `match' == "URY"  
         cap: replace incomelevel = "HIC"     if `match' == "USA"  
         cap: replace incomelevel = "LMC"     if `match' == "UZB"  
         cap: replace incomelevel = "UMC"     if `match' == "VCT"  
         cap: replace incomelevel = "UMC"     if `match' == "VEN"  
         cap: replace incomelevel = "HIC"     if `match' == "VGB"  
         cap: replace incomelevel = "HIC"     if `match' == "VIR"  
         cap: replace incomelevel = "LMC"     if `match' == "VNM"  
         cap: replace incomelevel = "LMC"     if `match' == "VUT"  
         cap: replace incomelevel = "NA"     if `match' == "WLD"  
         cap: replace incomelevel = "UMC"     if `match' == "WSM"  
         cap: replace incomelevel = "UMC"     if `match' == "XKX"  
         cap: replace incomelevel = "NA"     if `match' == "XZN"  
         cap: replace incomelevel = "LIC"     if `match' == "YEM"  
         cap: replace incomelevel = "UMC"     if `match' == "ZAF"  
         cap: replace incomelevel = "LMC"     if `match' == "ZMB"  
         cap: replace incomelevel = "LMC"     if `match' == "ZWE"  
  
******************  Lable: incomelevel ******************
  
     lab var incomelevel                 "Income Level Code" 
 }        
  
 ****************************************************** 
  
 ******************  Values: incomelevel_iso2 ****************** 
  
 qui if ("`incomelevel_iso2'" == "incomelevel_iso2") {      
  
         cap: gen incomelevel_iso2 = ""  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "ABW"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "AFG"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "AFR"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "AGO"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "ALB"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "AND"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "ANR"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "ARB"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "ARE"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "ARG"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "ARM"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "ASM"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "ATG"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "AUS"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "AUT"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "AZE"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "BDI"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "BEA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "BEC"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "BEL"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "BEN"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "BFA"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "BGD"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "BGR"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "BHI"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "BHR"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "BHS"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "BIH"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "BLA"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "BLR"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "BLZ"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "BMN"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "BMU"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "BOL"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "BRA"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "BRB"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "BRN"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "BSS"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "BTN"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "BWA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "CAA"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "CAF"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "CAN"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "CEA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "CEB"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "CEU"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "CHE"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "CHI"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "CHL"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "CHN"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "CIV"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "CLA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "CME"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "CMR"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "COD"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "COG"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "COL"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "COM"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "CPV"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "CRI"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "CSA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "CSS"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "CUB"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "CUW"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "CYM"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "CYP"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "CZE"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DEA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DEC"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "DEU"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DFS"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "DJI"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DLA"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "DMA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DMN"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DNF"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "DNK"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DNS"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "DOM"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DSA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DSF"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DSS"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "DXS"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "DZA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "EAP"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "EAR"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "EAS"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "ECA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "ECS"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "ECU"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "EGY"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "EMU"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "ERI"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "ESP"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "EST"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "ETH"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "EUU"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "FCS"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "FIN"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "FJI"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "FRA"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "FRO"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "FSM"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "FXS"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "GAB"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "GBR"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "GEO"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "GHA"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "GIB"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "GIN"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "GMB"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "GNB"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "GNQ"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "GRC"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "GRD"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "GRL"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "GTM"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "GUM"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "GUY"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "HIC"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "HKG"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "HND"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "HPC"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "HRV"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "HTI"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "HUN"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "IBB"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "IBD"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "IBT"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "IDA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "IDB"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "IDN"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "IDX"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "IMN"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "IND"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "INX"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "IRL"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "IRN"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "IRQ"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "ISL"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "ISR"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "ITA"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "JAM"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "JOR"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "JPN"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "KAZ"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "KEN"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "KGZ"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "KHM"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "KIR"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "KNA"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "KOR"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "KWT"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "LAC"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "LAO"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "LBN"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "LBR"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "LBY"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "LCA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "LCN"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "LCR"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "LDC"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "LIC"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "LIE"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "LKA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "LMC"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "LMY"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "LSO"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "LTE"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "LTU"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "LUX"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "LVA"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "MAC"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "MAF"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "MAR"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "MCA"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "MCO"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "MDA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "MDE"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "MDG"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "MDV"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "MEA"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "MEX"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "MHL"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "MIC"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "MKD"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "MLI"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "MLT"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "MMR"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "MNA"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "MNE"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "MNG"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "MNP"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "MOZ"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "MRT"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "MUS"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "MWI"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "MYS"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "NAC"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "NAF"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "NAM"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "NCL"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "NER"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "NGA"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "NIC"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "NLD"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "NLS"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "NOR"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "NPL"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "NRS"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "NRU"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "NXS"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "NZL"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "OED"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "OMN"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "OSS"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "PAK"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "PAN"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "PER"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "PHL"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "PLW"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "PNG"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "POL"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "PRE"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "PRI"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "PRK"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "PRT"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "PRY"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "PSE"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "PSS"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "PST"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "PYF"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "QAT"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "ROU"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "RRS"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "RSO"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "RUS"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "RWA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "SAS"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "SAU"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "SCE"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "SDN"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "SEN"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "SGP"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "SLB"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "SLE"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "SLV"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "SMR"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "SOM"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "SRB"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "SSA"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "SSD"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "SSF"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "SST"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "STP"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "SUR"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "SVK"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "SVN"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "SWE"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "SWZ"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "SXM"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "SXZ"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "SYC"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "SYR"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "TCA"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "TCD"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "TEA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "TEC"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "TGO"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "THA"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "TJK"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "TKM"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "TLA"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "TLS"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "TMN"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "TON"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "TSA"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "TSS"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "TTO"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "TUN"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "TUR"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "TUV"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "TWN"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "TZA"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "UGA"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "UKR"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "UMC"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "URY"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "USA"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "UZB"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "VCT"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "VEN"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "VGB"  
         cap: replace incomelevel_iso2 = "XD"     if `match' == "VIR"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "VNM"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "VUT"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "WLD"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "WSM"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "XKX"  
         cap: replace incomelevel_iso2 = "NA"     if `match' == "XZN"  
         cap: replace incomelevel_iso2 = "XM"     if `match' == "YEM"  
         cap: replace incomelevel_iso2 = "XT"     if `match' == "ZAF"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "ZMB"  
         cap: replace incomelevel_iso2 = "XN"     if `match' == "ZWE"  
  
******************  Lable: incomelevel_iso2 ******************
  
     lab var incomelevel_iso2    "Income Level Code (ISO 2 digits)" 
 }        
  
 ****************************************************** 
  
 ******************  Values: incomelevelname ****************** 
  
 qui if ("`incomelevelname'" == "incomelevelname") {      
  
         cap: gen incomelevelname = ""  
         cap: replace incomelevelname = "High income"     if `match' == "ABW"  
         cap: replace incomelevelname = "Low income"     if `match' == "AFG"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "AFR"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "AGO"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "ALB"  
         cap: replace incomelevelname = "High income"     if `match' == "AND"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "ANR"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "ARB"  
         cap: replace incomelevelname = "High income"     if `match' == "ARE"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "ARG"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "ARM"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "ASM"  
         cap: replace incomelevelname = "High income"     if `match' == "ATG"  
         cap: replace incomelevelname = "High income"     if `match' == "AUS"  
         cap: replace incomelevelname = "High income"     if `match' == "AUT"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "AZE"  
         cap: replace incomelevelname = "Low income"     if `match' == "BDI"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "BEA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "BEC"  
         cap: replace incomelevelname = "High income"     if `match' == "BEL"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "BEN"  
         cap: replace incomelevelname = "Low income"     if `match' == "BFA"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "BGD"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "BGR"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "BHI"  
         cap: replace incomelevelname = "High income"     if `match' == "BHR"  
         cap: replace incomelevelname = "High income"     if `match' == "BHS"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "BIH"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "BLA"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "BLR"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "BLZ"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "BMN"  
         cap: replace incomelevelname = "High income"     if `match' == "BMU"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "BOL"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "BRA"  
         cap: replace incomelevelname = "High income"     if `match' == "BRB"  
         cap: replace incomelevelname = "High income"     if `match' == "BRN"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "BSS"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "BTN"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "BWA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "CAA"  
         cap: replace incomelevelname = "Low income"     if `match' == "CAF"  
         cap: replace incomelevelname = "High income"     if `match' == "CAN"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "CEA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "CEB"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "CEU"  
         cap: replace incomelevelname = "High income"     if `match' == "CHE"  
         cap: replace incomelevelname = "High income"     if `match' == "CHI"  
         cap: replace incomelevelname = "High income"     if `match' == "CHL"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "CHN"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "CIV"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "CLA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "CME"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "CMR"  
         cap: replace incomelevelname = "Low income"     if `match' == "COD"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "COG"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "COL"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "COM"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "CPV"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "CRI"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "CSA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "CSS"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "CUB"  
         cap: replace incomelevelname = "High income"     if `match' == "CUW"  
         cap: replace incomelevelname = "High income"     if `match' == "CYM"  
         cap: replace incomelevelname = "High income"     if `match' == "CYP"  
         cap: replace incomelevelname = "High income"     if `match' == "CZE"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DEA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DEC"  
         cap: replace incomelevelname = "High income"     if `match' == "DEU"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DFS"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "DJI"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DLA"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "DMA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DMN"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DNF"  
         cap: replace incomelevelname = "High income"     if `match' == "DNK"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DNS"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "DOM"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DSA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DSF"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DSS"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "DXS"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "DZA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "EAP"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "EAR"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "EAS"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "ECA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "ECS"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "ECU"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "EGY"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "EMU"  
         cap: replace incomelevelname = "Low income"     if `match' == "ERI"  
         cap: replace incomelevelname = "High income"     if `match' == "ESP"  
         cap: replace incomelevelname = "High income"     if `match' == "EST"  
         cap: replace incomelevelname = "Low income"     if `match' == "ETH"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "EUU"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "FCS"  
         cap: replace incomelevelname = "High income"     if `match' == "FIN"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "FJI"  
         cap: replace incomelevelname = "High income"     if `match' == "FRA"  
         cap: replace incomelevelname = "High income"     if `match' == "FRO"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "FSM"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "FXS"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "GAB"  
         cap: replace incomelevelname = "High income"     if `match' == "GBR"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "GEO"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "GHA"  
         cap: replace incomelevelname = "High income"     if `match' == "GIB"  
         cap: replace incomelevelname = "Low income"     if `match' == "GIN"  
         cap: replace incomelevelname = "Low income"     if `match' == "GMB"  
         cap: replace incomelevelname = "Low income"     if `match' == "GNB"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "GNQ"  
         cap: replace incomelevelname = "High income"     if `match' == "GRC"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "GRD"  
         cap: replace incomelevelname = "High income"     if `match' == "GRL"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "GTM"  
         cap: replace incomelevelname = "High income"     if `match' == "GUM"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "GUY"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "HIC"  
         cap: replace incomelevelname = "High income"     if `match' == "HKG"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "HND"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "HPC"  
         cap: replace incomelevelname = "High income"     if `match' == "HRV"  
         cap: replace incomelevelname = "Low income"     if `match' == "HTI"  
         cap: replace incomelevelname = "High income"     if `match' == "HUN"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "IBB"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "IBD"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "IBT"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "IDA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "IDB"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "IDN"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "IDX"  
         cap: replace incomelevelname = "High income"     if `match' == "IMN"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "IND"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "INX"  
         cap: replace incomelevelname = "High income"     if `match' == "IRL"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "IRN"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "IRQ"  
         cap: replace incomelevelname = "High income"     if `match' == "ISL"  
         cap: replace incomelevelname = "High income"     if `match' == "ISR"  
         cap: replace incomelevelname = "High income"     if `match' == "ITA"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "JAM"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "JOR"  
         cap: replace incomelevelname = "High income"     if `match' == "JPN"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "KAZ"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "KEN"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "KGZ"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "KHM"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "KIR"  
         cap: replace incomelevelname = "High income"     if `match' == "KNA"  
         cap: replace incomelevelname = "High income"     if `match' == "KOR"  
         cap: replace incomelevelname = "High income"     if `match' == "KWT"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "LAC"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "LAO"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "LBN"  
         cap: replace incomelevelname = "Low income"     if `match' == "LBR"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "LBY"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "LCA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "LCN"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "LCR"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "LDC"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "LIC"  
         cap: replace incomelevelname = "High income"     if `match' == "LIE"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "LKA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "LMC"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "LMY"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "LSO"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "LTE"  
         cap: replace incomelevelname = "High income"     if `match' == "LTU"  
         cap: replace incomelevelname = "High income"     if `match' == "LUX"  
         cap: replace incomelevelname = "High income"     if `match' == "LVA"  
         cap: replace incomelevelname = "High income"     if `match' == "MAC"  
         cap: replace incomelevelname = "High income"     if `match' == "MAF"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "MAR"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "MCA"  
         cap: replace incomelevelname = "High income"     if `match' == "MCO"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "MDA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "MDE"  
         cap: replace incomelevelname = "Low income"     if `match' == "MDG"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "MDV"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "MEA"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "MEX"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "MHL"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "MIC"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "MKD"  
         cap: replace incomelevelname = "Low income"     if `match' == "MLI"  
         cap: replace incomelevelname = "High income"     if `match' == "MLT"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "MMR"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "MNA"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "MNE"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "MNG"  
         cap: replace incomelevelname = "High income"     if `match' == "MNP"  
         cap: replace incomelevelname = "Low income"     if `match' == "MOZ"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "MRT"  
         cap: replace incomelevelname = "High income"     if `match' == "MUS"  
         cap: replace incomelevelname = "Low income"     if `match' == "MWI"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "MYS"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "NAC"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "NAF"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "NAM"  
         cap: replace incomelevelname = "High income"     if `match' == "NCL"  
         cap: replace incomelevelname = "Low income"     if `match' == "NER"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "NGA"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "NIC"  
         cap: replace incomelevelname = "High income"     if `match' == "NLD"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "NLS"  
         cap: replace incomelevelname = "High income"     if `match' == "NOR"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "NPL"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "NRS"  
         cap: replace incomelevelname = "High income"     if `match' == "NRU"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "NXS"  
         cap: replace incomelevelname = "High income"     if `match' == "NZL"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "OED"  
         cap: replace incomelevelname = "High income"     if `match' == "OMN"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "OSS"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "PAK"  
         cap: replace incomelevelname = "High income"     if `match' == "PAN"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "PER"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "PHL"  
         cap: replace incomelevelname = "High income"     if `match' == "PLW"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "PNG"  
         cap: replace incomelevelname = "High income"     if `match' == "POL"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "PRE"  
         cap: replace incomelevelname = "High income"     if `match' == "PRI"  
         cap: replace incomelevelname = "Low income"     if `match' == "PRK"  
         cap: replace incomelevelname = "High income"     if `match' == "PRT"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "PRY"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "PSE"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "PSS"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "PST"  
         cap: replace incomelevelname = "High income"     if `match' == "PYF"  
         cap: replace incomelevelname = "High income"     if `match' == "QAT"  
         cap: replace incomelevelname = "High income"     if `match' == "ROU"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "RRS"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "RSO"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "RUS"  
         cap: replace incomelevelname = "Low income"     if `match' == "RWA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "SAS"  
         cap: replace incomelevelname = "High income"     if `match' == "SAU"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "SCE"  
         cap: replace incomelevelname = "Low income"     if `match' == "SDN"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "SEN"  
         cap: replace incomelevelname = "High income"     if `match' == "SGP"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "SLB"  
         cap: replace incomelevelname = "Low income"     if `match' == "SLE"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "SLV"  
         cap: replace incomelevelname = "High income"     if `match' == "SMR"  
         cap: replace incomelevelname = "Low income"     if `match' == "SOM"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "SRB"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "SSA"  
         cap: replace incomelevelname = "Low income"     if `match' == "SSD"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "SSF"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "SST"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "STP"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "SUR"  
         cap: replace incomelevelname = "High income"     if `match' == "SVK"  
         cap: replace incomelevelname = "High income"     if `match' == "SVN"  
         cap: replace incomelevelname = "High income"     if `match' == "SWE"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "SWZ"  
         cap: replace incomelevelname = "High income"     if `match' == "SXM"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "SXZ"  
         cap: replace incomelevelname = "High income"     if `match' == "SYC"  
         cap: replace incomelevelname = "Low income"     if `match' == "SYR"  
         cap: replace incomelevelname = "High income"     if `match' == "TCA"  
         cap: replace incomelevelname = "Low income"     if `match' == "TCD"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "TEA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "TEC"  
         cap: replace incomelevelname = "Low income"     if `match' == "TGO"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "THA"  
         cap: replace incomelevelname = "Low income"     if `match' == "TJK"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "TKM"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "TLA"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "TLS"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "TMN"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "TON"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "TSA"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "TSS"  
         cap: replace incomelevelname = "High income"     if `match' == "TTO"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "TUN"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "TUR"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "TUV"  
         cap: replace incomelevelname = "High income"     if `match' == "TWN"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "TZA"  
         cap: replace incomelevelname = "Low income"     if `match' == "UGA"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "UKR"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "UMC"  
         cap: replace incomelevelname = "High income"     if `match' == "URY"  
         cap: replace incomelevelname = "High income"     if `match' == "USA"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "UZB"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "VCT"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "VEN"  
         cap: replace incomelevelname = "High income"     if `match' == "VGB"  
         cap: replace incomelevelname = "High income"     if `match' == "VIR"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "VNM"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "VUT"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "WLD"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "WSM"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "XKX"  
         cap: replace incomelevelname = "Aggregates"     if `match' == "XZN"  
         cap: replace incomelevelname = "Low income"     if `match' == "YEM"  
         cap: replace incomelevelname = "Upper middle income"     if `match' == "ZAF"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "ZMB"  
         cap: replace incomelevelname = "Lower middle income"     if `match' == "ZWE"  
  
******************  Lable: incomelevelname ******************
  
     lab var incomelevelname     "Income Level Name" 
 }        
  
 ****************************************************** 
  
 end 
